Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSUB-333: Experiment with fuzzing #1376

Draft
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

atodorov
Copy link
Contributor

@atodorov atodorov commented Oct 5, 2023

Description of proposed changes


Practical tips for PR review & merge:

  • All GitHub Actions report PASS
  • Newly added code/functions have unit tests
    • Coverage tools report all newly added lines as covered
    • The positive scenario is exercised
    • Negative scenarios are exercised, e.g. assert on all possible errors
    • Assert on events triggered if applicable
    • Assert on changes made to storage if applicable
  • Modified behavior/functions - try to make sure above test items are covered
  • Integration tests are added if applicable/needed

@codecov-commenter
Copy link

Codecov Report

Merging #1376 (6ea251f) into dev (9fc2a6c) will decrease coverage by 61.22%.
Report is 5 commits behind head on dev.
The diff coverage is n/a.

@@             Coverage Diff             @@
##              dev    #1376       +/-   ##
===========================================
- Coverage   74.90%   13.68%   -61.22%     
===========================================
  Files          76       31       -45     
  Lines       11552     1001    -10551     
  Branches        0      128      +128     
===========================================
- Hits         8653      137     -8516     
+ Misses       2899      864     -2035     

see 107 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

// Increment our balance counts
counted_free += acc.1.data.free;
counted_reserved += acc.1.data.reserved;
_counted_frozen += acc.1.data.frozen;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is available in polkadot-v0.9.42 ( +1 from our current version).

counted_reserved += acc.1.data.reserved;
_counted_frozen += acc.1.data.frozen;
// this is private vvv
// _counted_frozen += acc.1.data.frozen();
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With version polkadot-v0.9.41 this is a private method so we can't call it:

   ::: /home/gluwa/.cargo/git/checkouts/substrate-ef6be82d837dee7f/4e22d40/frame/balances/src/lib.rs:715:2
    |
715 |     fn frozen(&self, reasons: Reasons) -> Balance {
    |     --------------------------------------------- private method defined here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants